\hypertarget{class_q_qt_widget}{}\section{Q\+Qt\+Widget Class Reference}
\label{class_q_qt_widget}\index{Q\+Qt\+Widget@{Q\+Qt\+Widget}}
Inheritance diagram for Q\+Qt\+Widget\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=11.000000cm]{class_q_qt_widget}
\end{center}
\end{figure}
\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
enum \mbox{\hyperlink{class_q_qt_widget_a5a6d58f533c2f43c854f47f71d086cce}{Image\+Style}} \{ \newline
\mbox{\hyperlink{class_q_qt_widget_a5a6d58f533c2f43c854f47f71d086ccea67fe3a192a16e09bb76e0d6ec23524d7}{Q\+Q\+T\+C\+E\+N\+T\+ER}}, 
\mbox{\hyperlink{class_q_qt_widget_a5a6d58f533c2f43c854f47f71d086cceaf3957f90f03e90dedfe35e5debfb1b29}{Q\+Q\+T\+T\+I\+L\+E\+D\+W\+I\+D\+TH}}, 
{\bfseries Q\+Q\+T\+T\+I\+L\+E\+D\+H\+E\+I\+G\+HT}, 
{\bfseries Q\+Q\+T\+T\+I\+L\+ED}, 
\newline
\mbox{\hyperlink{class_q_qt_widget_a5a6d58f533c2f43c854f47f71d086cceabbda1cf537f85a1d4ee66863907732d6}{Q\+Q\+T\+Z\+O\+O\+M\+W\+I\+D\+TH}}, 
{\bfseries Q\+Q\+T\+Z\+O\+O\+M\+H\+E\+I\+G\+HT}, 
{\bfseries Q\+Q\+T\+Z\+O\+OM}, 
\mbox{\hyperlink{class_q_qt_widget_a5a6d58f533c2f43c854f47f71d086cceae6b0a3f96c2c8a62f909690d00e2853b}{Q\+Q\+T\+Z\+O\+O\+M\+W\+I\+D\+T\+H\+\_\+\+K\+E\+E\+P\+A\+S\+P\+E\+C\+T\+R\+A\+T\+IO}}, 
\newline
{\bfseries Q\+Q\+T\+Z\+O\+O\+M\+H\+E\+I\+G\+H\+T\+\_\+\+K\+E\+E\+P\+A\+S\+P\+E\+C\+T\+R\+A\+T\+IO}, 
{\bfseries Q\+Q\+T\+Z\+O\+O\+M\+\_\+\+K\+E\+E\+P\+A\+S\+P\+E\+C\+T\+R\+A\+T\+IO}, 
{\bfseries Q\+Q\+T\+I\+M\+A\+G\+E\+S\+T\+Y\+L\+E\+M\+AX}
 \}
\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{class_q_qt_widget_a28805216d8877c09c247cc09cd3aa654}\label{class_q_qt_widget_a28805216d8877c09c247cc09cd3aa654}} 
{\bfseries Q\+Qt\+Widget} (Q\+Widget $\ast$parent=0)
\item 
\mbox{\Hypertarget{class_q_qt_widget_a8a50bdce66c383f4f708d4ea2588f155}\label{class_q_qt_widget_a8a50bdce66c383f4f708d4ea2588f155}} 
void {\bfseries set\+Image\+Style} (\mbox{\hyperlink{class_q_qt_widget_a5a6d58f533c2f43c854f47f71d086cce}{Image\+Style}} style=\mbox{\hyperlink{class_q_qt_widget_a5a6d58f533c2f43c854f47f71d086ccea67fe3a192a16e09bb76e0d6ec23524d7}{Q\+Q\+T\+C\+E\+N\+T\+ER}})
\item 
\mbox{\Hypertarget{class_q_qt_widget_a7139ad8c4e8cdf6cb17493e8c93f5afb}\label{class_q_qt_widget_a7139ad8c4e8cdf6cb17493e8c93f5afb}} 
void {\bfseries set\+Pixmap} (const Q\+String \&pic=Q\+String())
\item 
\mbox{\Hypertarget{class_q_qt_widget_a9d0b612a44166525f4f1c691a25eab05}\label{class_q_qt_widget_a9d0b612a44166525f4f1c691a25eab05}} 
void {\bfseries set\+Pixmap} (const Q\+Pixmap \&pixmap)
\item 
\mbox{\Hypertarget{class_q_qt_widget_a89e4ffac8d1a8cede80746c947c14858}\label{class_q_qt_widget_a89e4ffac8d1a8cede80746c947c14858}} 
void {\bfseries set\+Pixmap} (const Q\+Image \&image)
\end{DoxyCompactItemize}
\subsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
void \mbox{\hyperlink{class_q_qt_widget_a6ba32570495e7f880be841557cfea6ea}{paint\+Event}} (Q\+Paint\+Event $\ast$) override
\end{DoxyCompactItemize}


\subsection{Member Enumeration Documentation}
\mbox{\Hypertarget{class_q_qt_widget_a5a6d58f533c2f43c854f47f71d086cce}\label{class_q_qt_widget_a5a6d58f533c2f43c854f47f71d086cce}} 
\index{Q\+Qt\+Widget@{Q\+Qt\+Widget}!Image\+Style@{Image\+Style}}
\index{Image\+Style@{Image\+Style}!Q\+Qt\+Widget@{Q\+Qt\+Widget}}
\subsubsection{\texorpdfstring{Image\+Style}{ImageStyle}}
{\footnotesize\ttfamily enum \mbox{\hyperlink{class_q_qt_widget_a5a6d58f533c2f43c854f47f71d086cce}{Q\+Qt\+Widget\+::\+Image\+Style}}}

\begin{DoxyEnumFields}{Enumerator}
\raisebox{\heightof{T}}[0pt][0pt]{\index{Q\+Q\+T\+C\+E\+N\+T\+ER@{Q\+Q\+T\+C\+E\+N\+T\+ER}!Q\+Qt\+Widget@{Q\+Qt\+Widget}}\index{Q\+Qt\+Widget@{Q\+Qt\+Widget}!Q\+Q\+T\+C\+E\+N\+T\+ER@{Q\+Q\+T\+C\+E\+N\+T\+ER}}}\mbox{\Hypertarget{class_q_qt_widget_a5a6d58f533c2f43c854f47f71d086ccea67fe3a192a16e09bb76e0d6ec23524d7}\label{class_q_qt_widget_a5a6d58f533c2f43c854f47f71d086ccea67fe3a192a16e09bb76e0d6ec23524d7}} 
Q\+Q\+T\+C\+E\+N\+T\+ER&整个居中,全面缩放显示 \\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{Q\+Q\+T\+T\+I\+L\+E\+D\+W\+I\+D\+TH@{Q\+Q\+T\+T\+I\+L\+E\+D\+W\+I\+D\+TH}!Q\+Qt\+Widget@{Q\+Qt\+Widget}}\index{Q\+Qt\+Widget@{Q\+Qt\+Widget}!Q\+Q\+T\+T\+I\+L\+E\+D\+W\+I\+D\+TH@{Q\+Q\+T\+T\+I\+L\+E\+D\+W\+I\+D\+TH}}}\mbox{\Hypertarget{class_q_qt_widget_a5a6d58f533c2f43c854f47f71d086cceaf3957f90f03e90dedfe35e5debfb1b29}\label{class_q_qt_widget_a5a6d58f533c2f43c854f47f71d086cceaf3957f90f03e90dedfe35e5debfb1b29}} 
Q\+Q\+T\+T\+I\+L\+E\+D\+W\+I\+D\+TH&切 从左上 会产生label的效果，左右按照rect长，但是不缩放形状 \\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{Q\+Q\+T\+Z\+O\+O\+M\+W\+I\+D\+TH@{Q\+Q\+T\+Z\+O\+O\+M\+W\+I\+D\+TH}!Q\+Qt\+Widget@{Q\+Qt\+Widget}}\index{Q\+Qt\+Widget@{Q\+Qt\+Widget}!Q\+Q\+T\+Z\+O\+O\+M\+W\+I\+D\+TH@{Q\+Q\+T\+Z\+O\+O\+M\+W\+I\+D\+TH}}}\mbox{\Hypertarget{class_q_qt_widget_a5a6d58f533c2f43c854f47f71d086cceabbda1cf537f85a1d4ee66863907732d6}\label{class_q_qt_widget_a5a6d58f533c2f43c854f47f71d086cceabbda1cf537f85a1d4ee66863907732d6}} 
Q\+Q\+T\+Z\+O\+O\+M\+W\+I\+D\+TH&缩放 忽略长宽比 \\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{Q\+Q\+T\+Z\+O\+O\+M\+W\+I\+D\+T\+H\+\_\+\+K\+E\+E\+P\+A\+S\+P\+E\+C\+T\+R\+A\+T\+IO@{Q\+Q\+T\+Z\+O\+O\+M\+W\+I\+D\+T\+H\+\_\+\+K\+E\+E\+P\+A\+S\+P\+E\+C\+T\+R\+A\+T\+IO}!Q\+Qt\+Widget@{Q\+Qt\+Widget}}\index{Q\+Qt\+Widget@{Q\+Qt\+Widget}!Q\+Q\+T\+Z\+O\+O\+M\+W\+I\+D\+T\+H\+\_\+\+K\+E\+E\+P\+A\+S\+P\+E\+C\+T\+R\+A\+T\+IO@{Q\+Q\+T\+Z\+O\+O\+M\+W\+I\+D\+T\+H\+\_\+\+K\+E\+E\+P\+A\+S\+P\+E\+C\+T\+R\+A\+T\+IO}}}\mbox{\Hypertarget{class_q_qt_widget_a5a6d58f533c2f43c854f47f71d086cceae6b0a3f96c2c8a62f909690d00e2853b}\label{class_q_qt_widget_a5a6d58f533c2f43c854f47f71d086cceae6b0a3f96c2c8a62f909690d00e2853b}} 
Q\+Q\+T\+Z\+O\+O\+M\+W\+I\+D\+T\+H\+\_\+\+K\+E\+E\+P\+A\+S\+P\+E\+C\+T\+R\+A\+T\+IO&缩放 保持长宽比 \\
\hline

\end{DoxyEnumFields}


\subsection{Member Function Documentation}
\mbox{\Hypertarget{class_q_qt_widget_a6ba32570495e7f880be841557cfea6ea}\label{class_q_qt_widget_a6ba32570495e7f880be841557cfea6ea}} 
\index{Q\+Qt\+Widget@{Q\+Qt\+Widget}!paint\+Event@{paint\+Event}}
\index{paint\+Event@{paint\+Event}!Q\+Qt\+Widget@{Q\+Qt\+Widget}}
\subsubsection{\texorpdfstring{paint\+Event()}{paintEvent()}}
{\footnotesize\ttfamily void Q\+Qt\+Widget\+::paint\+Event (\begin{DoxyParamCaption}\item[{Q\+Paint\+Event $\ast$}]{event }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [override]}, {\ttfamily [protected]}}

要达到居中的目标，\+Q\+Image需要做的size判断很繁复，这里使用\+Q\+Icon做一些中间转换的后续转换，可以很容易的达到绘制合理大小的pixmap的目的。 source\+: pixmap file image Q\+Image 输入、输出两侧是pixmap 借助(+\+Q\+Icon) Q\+Icon 输入、输出两侧也是pixmap dest\+: 所需要的、合理大小的pixmap

The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
R\+:/\+Develop/a0-\/develop/\+Lib\+Q\+Qt/src/widgets/qqtwidget.\+h\item 
R\+:/\+Develop/a0-\/develop/\+Lib\+Q\+Qt/src/widgets/qqtwidget.\+cpp\end{DoxyCompactItemize}
